package com.woniuxy.crm.unilt;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public  class Orderulit {
    public  static String localdatetime(){
        LocalDateTime now = LocalDateTime.now();
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
        String s = dateTimeFormatter.format(now);
        int rnum = (int) (Math.random()*9000+1000);
//        System.out.println("WN"+s+rnum);
        return "WN"+s+rnum;
    }

//    public static void main(String[] args) {
//        Orderulit orderulit = new Orderulit();
//        orderulit.localdatetime();
//    }

}
